package com.nioserver.io;

import com.nioserver.lib.LuaMessage;

import java.util.Queue;
import java.util.concurrent.ExecutorService;

public class LuaPool implements Runnable{

    Queue<LuaMessage> channels;
    ExecutorService pool;
    @Override
    public void run() {

        while (true){

            while (!channels.isEmpty()){
                LuaMessage sc = channels.poll();
                pool.submit(new Runnable() {
                    @Override
                    public void run() {
                        
                    }
                });
            }
        }
    }
}
